package cn.xdf.mapper;

import cn.xdf.entity.User;
import org.springframework.stereotype.Component;

import java.util.List;


public interface UserMapper {


    User findByUsername(String username);//同包下面创一个mapper的sql语句

    List<User> findAll();

    void add(User user);

    void delete(Integer id);

    User findById(Integer id);

    void update(User user);

}
